package com.jin.stu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 业务管理的路由器
 * @author Jin
 */
@Controller
@RequestMapping("/stu")
public class StudentRouteController {

    /**
     * 跳转到注册页面
     */
    @RequestMapping("toRegister")
    public String toLogin() {
        return "student/register";
    }

    /**
     * 跳转到首页
     */
    @RequestMapping("index")
    public String index() {
        return "system/index/index";
    }

    /**
     * 跳转到学生管理
     */
    @RequestMapping("toStudentManager")
    public String toTeacherManager() {
        return "student/student/studentManager";
    }

    /**
     * 跳转到请假申请页面
     */
    @RequestMapping("toLeaveApply")
    public String toLeaveApple() {
        return "student/leave/leaveApply";
    }

    /**
     * 跳转到请假记录页面
     */
    @RequestMapping("toLeaveRecord")
    public String toLeaveRecord() {
        return "student/leave/leaveRecord";
    }

    /**
     * 跳转到请假审批页面
     */
    @RequestMapping("toLeaveApproval")
    public String toLeaveApproval() {
        return "student/approval/leaveApproval";
    }

    /**
     * 跳转到请假审批查看页面
     */
    @RequestMapping("toLeaveApprovalCheck")
    public String toLeaveApprovalCheck() {
        return "student/approval/leaveApprovalCheck";
    }

    /**
     * 跳转到销假页面
     */
    @RequestMapping("toLeaveBackoutApply")
    public String toLeaveBackoutApply() {
        return "student/leave/leaveBackoutApply";
    }

    /**
     * 跳转到个人信息管理
     */
    @RequestMapping("toStudentInfoManager")
    public String toUserInfoManager() {
        return "student/student/studentInfoManager";
    }

}
